package com.example.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.entity.ListOfGoods;
import com.example.mapper.ListOfGoodsMapper;
import com.example.service.IListOfGoodsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2024-09-05
 */
@Service
public class ListOfGoodsServiceImpl extends ServiceImpl<ListOfGoodsMapper, ListOfGoods> implements IListOfGoodsService {

    @Resource
    ListOfGoodsMapper listOfGoodsMapper;

    @Override
    public IPage<ListOfGoods> listListGoodsId(Integer pageIndex, Integer pageSize) {
        Page<ListOfGoods> page = new Page<>(pageIndex,pageSize);
        return listOfGoodsMapper.listListGoodsId(page);
    }

    @Override
    public ListOfGoods listListId(Integer id) {
        return listOfGoodsMapper.listListId(id);
    }
}
